package com.huabo.contract.mysql.entity;

import java.math.BigDecimal;


import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;

/**
 * <p>
 * 
 * </p>
 *
 * @author huabo
 * @since 2022-03-21
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @TableName("TBL_CONTRACT_LEND")

@ApiModel(value="TblContractLend对象", description="")
public class TblContractLendMySql implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId("LENDID")
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "select HIBERNATE_SEQUENCE.nextval from dual")
      private BigDecimal lendid;

    @TableField("LENDDATE")
    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern ="yyyy-MM-dd" )
    private Date lenddate;

    @TableField("RETURNDATE")
    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern ="yyyy-MM-dd" )
    private Date returndate;

    @TableField("LENDSTATUS")
    private BigDecimal lendstatus;

    @TableField("MEMO")
    private String memo;

    @TableField("USERID")
    private BigDecimal userid;

    @TableField("CONTRACTID")
    private BigDecimal contractid;

    @Transient
    private String realname;
    @Transient
    private String contractname;
    @Transient
    private String contractno;



}
